package com.example.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/* 数据库表t_user的实体类 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String username;
    private String password;
    private String description;
    private Integer sex;
    private Date created;
    private Date updated;

    /* 封装登录查询的数据 */
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
